/*
 * uart.h
 *
 * Created: 02/07/2011 09:19:11
 *  Author: guy
 */


#ifndef UART_H_
#define UART_H_

#ifndef F_CPU
#define F_CPU 16000000
#endif

#define HIGH(x) ((uint8_t)(x >> 8))
#define LOW(x) ((uint8_t)(x & 0xff))

void uart_init(uint32_t baud);
void uart_TxString_P(const char *str);
void uart_TxByte(uint8_t c);
void uart_TxInt16(int16_t i);
uint8_t uart_RxByte(void);
uint8_t uart_getAvailable(void);

#endif /* UART_H_ */
